package com.ruoyi.backend.mapper;

import java.util.List;
import com.ruoyi.backend.domain.ShopService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 店铺服务Mapper接口
 * 
 * @author wjr
 * @date 2025-09-23
 */
@Mapper
public interface ShopServiceMapper 
{
    /**
     * 查询店铺服务
     * 
     * @param id 店铺服务主键
     * @return 店铺服务
     */
    public ShopService selectShopServiceById(Integer id);

    /**
     * 查询店铺服务列表
     * 
     * @param shopService 店铺服务
     * @return 店铺服务集合
     */
    public List<ShopService> selectShopServiceList(ShopService shopService);

    /**
     * 新增店铺服务
     * 
     * @param shopService 店铺服务
     * @return 结果
     */
    public int insertShopService(ShopService shopService);

    /**
     * 修改店铺服务
     * 
     * @param shopService 店铺服务
     * @return 结果
     */
    public int updateShopService(ShopService shopService);

    /**
     * 删除店铺服务
     * 
     * @param id 店铺服务主键
     * @return 结果
     */
    public int deleteShopServiceById(Integer id);

    /**
     * 批量删除店铺服务
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopServiceByIds(Integer[] ids);

    /**
     * 批量新增某一店铺的服务
     *
     * @param shopId
     * @param serviceIds
     * @return
     */
    public int batchInsertShopService(@Param("shopId") Integer shopId,
                                      @Param("serviceIds") Integer[] serviceIds);

    /**
     * 根据店铺id删除店铺服务数据
     *
     * @param shopId
     */
    public int deleteShopServiceByShopId(@Param("shopId") Integer shopId);

}
